package leader.service;

import database.dao.MysqlCrud;
import teacher.bean.Teacher;

public class DirectLeaderService {
	/**
	 * @category 修改密码
	 * @param leader
	 * @return
	 */
	public boolean updateLeaderPassword(Teacher leader) {
		System.out.println("==============");
		boolean flag = false;
		String sql ="update teacher set password = ? where teaId =?";
		String[] parameter={
				String.valueOf(leader.getPassword()),
				String.valueOf(leader.getTeaId())
		};
		MysqlCrud mysqlcurd=new MysqlCrud();
		flag = mysqlcurd.InsertAndUpdateData(sql, parameter);
		return flag;
	}
}
